<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="vue.js"></script>
</head>
<body>
    <div id="demo">
                  今年是{{year}}年{{month}}月
    </div>
    <script>
        new Vue({
            el:'#demo',
            data:{
                year:new Date().getFullYear(),
                month:new Date().getMonth()+1
            }
        });
    </script>
</body>
</html>